package v1

import (
	"gohub/app/models/chapter"
	"gohub/pkg/response"

	"github.com/gin-gonic/gin"
)

type ChapterController struct {
	BaseAPIController
}

// Index 所有
func (ctrl *ChapterController) Index(c *gin.Context) {
	data := chapter.All()
	response.Data(c, data)
}
